﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Parameters
{
    internal class TransParameter
    {

        public static void Foo(int x)
        {
            x = x + 1;
            Console.WriteLine("方法内部的x:" + x);
        }

        public static void FooString(StringBuilder fooSB)
        {
            fooSB.Append("test");
            fooSB = null;
        }
        //添加ref修饰符
        public static void FooRef(ref int p)
        {
            p = p + 1;
            Console.WriteLine("方法内部的p:" + p);
        }
    }
}
